<template>
    <view class="infoData">
        <view class="li" v-if="infoData.sales_number">
            <text class="li_name">已服务：</text>
            <text class="li_num">{{ infoData.sales_number }}</text>
        </view>
        <view class="li" v-if="infoData.goods_heat">
            <text class="li_name">热度：</text>
            <text class="li_num">{{ infoData.goods_heat }}</text>
        </view>
        <view class="li" v-if="infoData.goods_favorable">
            <text class="li_name">好评：</text>
            <text class="li_num">{{ infoData.goods_favorable }}%</text>
        </view>
    </view>
</template>

<script>
    export default {
        props: ['infoData'],
        data() {
            return {};
        },
        methods: {}
    };
</script>

<style lang="scss" scoped>
    .infoData {
        width: 100%;
        background-color: #fff;
        padding: 32rpx;
        margin-top: 24rpx;
        display: flex;
        justify-content: space-between;
        align-items: center;
        .li {
            display: flex;
            align-items: center;
            .li_name {
                color: #999;
                font-size: 26rpx;
            }
            .li_num {
                color: #333;
                font-size: 26rpx;
            }
        }
    }
</style>
